home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2001 May
/
SGI Freeware 2001 May - Disc 3.iso
/
dist
/
fw_openssl.idb
/
usr
/
freeware
/
catman
/
p_man
/
cat3
/
BN_new.Z
/
BN_new
Wrap
Text File
|
2001-01-10
|
3KB
|
133 lines
BBBBNNNN____nnnneeeewwww((((3333)))) 22226666////JJJJaaaannnn////2222000000000000 ((((0000....9999....6666)))) BBBBNNNN____nnnneeeewwww((((3333))))
NNNNAAAAMMMMEEEE
BN_new, BN_init, BN_clear, BN_free, BN_clear_free - allocate
and free BIGNUMs
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <openssl/bn.h>
BIGNUM *BN_new(void);
void BN_init(BIGNUM *);
void BN_clear(BIGNUM *a);
void BN_free(BIGNUM *a);
void BN_clear_free(BIGNUM *a);
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_B_N__n_e_w() allocated and initializes a BBBBIIIIGGGGNNNNUUUUMMMM structure.
_B_N__i_n_i_t() initializes an existing uninitialized BBBBIIIIGGGGNNNNUUUUMMMM.
_B_N__c_l_e_a_r() is used to destroy sensitive data such as keys
when they are no longer needed. It erases the memory used by
aaaa and sets it to the value 0.
_B_N__f_r_e_e() frees the components of the BBBBIIIIGGGGNNNNUUUUMMMM, and if it was
created by _B_N__n_e_w(), also the structure itself.
_B_N__c_l_e_a_r__f_r_e_e() additionally overwrites the data before the
memory is returned to the system.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
_B_N__n_e_w() returns a pointer to the BBBBIIIIGGGGNNNNUUUUMMMM. If the allocation
fails, it returns NNNNUUUULLLLLLLL and sets an error code that can be
obtained by ERR_get_error(3).
_B_N__i_n_i_t(), _B_N__c_l_e_a_r(), _B_N__f_r_e_e() and _B_N__c_l_e_a_r__f_r_e_e() have no
return values.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
bn(3), err(3)
HHHHIIIISSSSTTTTOOOORRRRYYYY
_B_N__n_e_w(), _B_N__c_l_e_a_r(), _B_N__f_r_e_e() and _B_N__c_l_e_a_r__f_r_e_e() are
available in all versions on SSLeay and OpenSSL. _B_N__i_n_i_t()
was added in SSLeay 0.9.1b.
Page 1 (printed 11/10/00)
BBBBNNNN____nnnneeeewwww((((3333)))) 22226666////JJJJaaaannnn////2222000000000000 ((((0000....9999....6666)))) BBBBNNNN____nnnneeeewwww((((3333))))
Page 2 (printed 11/10/00)